import request from '@/utils/request'

// 查询内容目录列表
export function listContMenu(query) {
  return request({
    url: '/docCate/list',
    method: 'get',
    params: query
  })
}

// 保存内容目录
export function saveContMenu(info) {
  return request({
    url: '/docCate',
    method: info.cateId?'put':'post',
    data: info
  })
}

// 删除内容目录
export function deleteContMenu(ids) {
  return request({
    url: '/docCate/'+ids,
    method: 'delete'
  })
}